package com.starlight.flower_server.infrastructure.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.starlight.flower_server.domain.flowerKnowledge.cqrs.FlowerKnowledgePageQuery;
import com.starlight.flower_server.infrastructure.entity.FlowerKnowledge;

import java.util.List;

/**
 * @Author yfy2001
 * @date 2023/4/17 20:48
 */
public interface FlowerKnowledgeRepository {
    FlowerKnowledge queryDetail(Long id);

    Integer logicDelete(Long id);

    Integer insert(FlowerKnowledge flowerKnowledge);

    Integer modify(FlowerKnowledge flowerKnowledge);

    IPage<FlowerKnowledge> queryPage(FlowerKnowledgePageQuery query);

    List<FlowerKnowledge> queryAll();

    Long queryTotalCount();

    List<FlowerKnowledge> queryRandom(Integer count);
}
